//
//  HLHomeListHeaderView.m
//  YueYue
//
//  Created by hulu001 on 2023/5/25.
//

#import "HLHomeListHeaderView.h"
#import "HLHomeListMatchView.h"

@interface HLHomeListHeaderView ()

@property (nonatomic, strong) HLHomeListMatchView *matchView;

@end


@implementation HLHomeListHeaderView

- (instancetype)initWithReuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithReuseIdentifier:reuseIdentifier];
    if (self) {
        self.backgroundColor = UIColorWhite;
        self.contentView.backgroundColor = UIColorWhite;
        [self setupView];
    }
    return self;
}


- (void)setupView
{
//    self.videoView = [[HLHomeListVideoView alloc] init];
//    [self.contentView addSubview:_videoView];
//    [_videoView mas_makeConstraints:^(MASConstraintMaker *make) {
//        make.left.top.right.mas_equalTo(0);
//    }];
    
    self.matchView = [[HLHomeListMatchView alloc] init];
    _matchView.matchs = [HLHomeListMatchModel cellWithMatch];
    [self.contentView addSubview:_matchView];
    [_matchView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.left.right.bottom.mas_equalTo(0);
//        make.top.equalTo(_videoView.mas_bottom);
    }];
}

+ (NSString *)identifyCell
{
    return NSStringFromClass([self class]);
}

@end
